<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<form id="jyxx" class="form-horizontal" action="tushu/jieyuexinxi1" method="post" enctype="multipart/form-data">
    <input type="hidden" name="ts_id" id="ts_id" value="${requestScope.tushus.ts_id}">
    <div class="form-group">
        <label for="account" class="col-sm-2 control-label">借阅卡号</label>
        <div class="col-sm-10">
            <input type="text" name="dz_id" id="dz_id" class="form-control" id="account">

        </div>
    </div>

    <div class="form-group">
        <label for="tu_name" class="col-sm-2 control-label">图书名称</label>
        <div class="col-sm-10">
            <input type="text"  readonly value="${requestScope.tushus.tu_name}" class="form-control" id="tu_name" >
        </div>
    </div>
    <div class="form-group">
        <label for="jieyue" class="col-sm-2 control-label">借阅价格</label>
        <div class="col-sm-10">
            <input type="text"  readonly value="${requestScope.tushus.jieyue}" class="form-control" id="jieyue">
        </div>
    </div>



    <%--图书分类--%>
    <div class="form-group">
        <label for="leixing" class="col-sm-2 control-label">图书类型</label>
        <div class="col-sm-10">
            <input class="form-control"name="tushu.lx.lx_id" readonly id="leixing"  value="${requestScope.tushus.lx.lx_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="chubanshe" class="col-sm-2 control-label">出版社名</label>
        <div class="col-sm-10">
            <input class="form-control" readonly  id="chubanshe" value="${requestScope.tushus.chubanshe.cbs_name}">

            <script>
                $('#category').val($('#category').attr('data'));
            </script>
        </div>
    </div>



    <div class="form-group">
        <label for="jy_guihuan" class="col-sm-2 control-label">归还日期</label>
        <div class="col-sm-10">
            <input type="date" id="jy_guihuan" name="jy_guihuan"class="form-control date-picker" id="jy_guihuan" placeholder="请选择归还日期">
            <script>
                $('.date-picker').datepicker({
                    language: "zh-CN",
                    autoclose: true,//选中之后自动隐藏日期选择框
                    format: "yyyy/mm/dd",//springmvc默认支持时间格式
                    todayHighlight:true,
                }).on('changeDate',function(e){
                    $('.date-picker').datepicker('setStartDate',new Date());
                    var date1 = new Date();
                    var date2 = new Date(date1);
                    date2.setDate(date1.getDate() + 30);
                    $('.date-picker').datepicker('setEndDate',date2);
                });
            </script>
        </div>
    </div>



</form>
<script src="static/js/jieyue/jieyue.js"></script>